﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Common;

namespace TestLib.MockDBTools
{
   public class MockDbCommand:DbCommand
    {
       DbParameterCollection dpc = new MockDbParameterCollection();

       public MockDbCommand(DbConnection mockDBConnection)
       {
           this.DbConnection = mockDBConnection;
       }
        public override void Cancel()
        {
            throw new NotImplementedException();
        }
        protected override DbParameter CreateDbParameter()
        {
            throw new NotImplementedException();
        }
        protected override DbDataReader ExecuteDbDataReader(System.Data.CommandBehavior behavior)
        {
            throw new NotImplementedException();
        }

        public override int ExecuteNonQuery()
        {
            throw new NotImplementedException();
        }

        public override object ExecuteScalar()
        {
            throw new NotImplementedException();
        }

        public override void Prepare()
        {
            throw new NotImplementedException();
        }

#region properties
        public override string CommandText{get;set;}

        public override int CommandTimeout{get;set;}

        public override System.Data.CommandType CommandType{get;set;}


        protected override DbConnection DbConnection{get;set;}
        

        protected override DbTransaction DbTransaction{get;set;}
        

        public override bool DesignTimeVisible{get;set;}

        protected override DbParameterCollection DbParameterCollection { get { return dpc; } }

        public override System.Data.UpdateRowSource UpdatedRowSource{get;set; }
#endregion
    }
}
